package com.mhys.crm.dao;

import com.mhys.crm.entity.TbPatient;
import java.util.List;

import org.apache.ibatis.annotations.Param;

public interface TbPatientMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(TbPatient record);

    TbPatient selectByPrimaryKey(Integer id);

    List<TbPatient> selectAlls();

    int updateByPrimaryKey(TbPatient record);
    
    int update(Integer id);
    
    List<TbPatient> selectAll(@Param("name")String name,@Param("type")String type,@Param("dep")String dap);
}